<?php
interface IStrategy
{
    function filter($record);
}

class FindAfterStrategy implements IStrategy
{
    private $_name;

    public function __construct($name)
    {
        $this->_name = $name;
    }

    public function filter($record)
    {
        return strcmp($this->_name, $record) <= 0;
    }
}

class RadomStrategy implements IStrategy
{
    public function filter($record)
    {
        return rand(0, 1) >= 0.5;
    }
}

































